import http from "../common/http.js";

export function passportCode(data, loading) {
  return http.GET("/passport/code", data, loading);
}

export function getUserInfoById(data, loading) {
  return http.GET("/passport/get-user-info-by-id", data, loading);
}

export function getUserInfoByMobile(data, loading) {
  return http.GET("/passport/get-user-info-by-mobile", data, loading);
}

export function storeAppInfo(data, loading) {
  return http.GET("/store/store-app-info", data, loading);
}

export function allianceAppInfo(data, loading) {
  return http.GET("/store/alliance-app-info", data, loading);
}

export function getRedirectUri(data, loading) {
  return http.POST("/passport/get-redirect-uri", data, loading);
}

export function setH5UserInfo(data, loading) {
  return http.POST("/passport/set-h5-user-info", data, loading);
}
